package com.yanqu.road.entity.event;

import com.yanqu.road.utils.property.Property;

public interface IObjectEvent {
	//给eventCode添加监听
	public void addListener(int eventCode, IObjectEventListener listener);

	//移除eventCode的监听
	public void removeListener(int eventCode, IObjectEventListener listener);

	//触发事件
	public boolean notifyListener(int eventCode, int objectId);

	//触发事件
	public boolean notifyListener(int eventCode, int objectId, EventTriggerArgs eventArg);

	int checkObjectTaskComplete(int eventType, int object, int taskId);

	Property objectTaskFinish(int completeType, int objectId, Integer taskId);
}
